package org.smallreunion.twitter;

import org.smallreunion.model.config.TwitterConfig;
import org.smallreunion.service.ConfigService;

/**
 *
 * PokemonMS用TwitterAPIFactory
 *
 * @author Sinmetal
 *
 */
public class Twitter4srFactory {

    /**
     * PokemonMS用TwitterAPIオブジェクト生成
     *
     * @return
     */
    public Twitter4sr getInstance() {
        ConfigService service = new ConfigService();
        TwitterConfig config = service.getTwitterConfig();
        return new Twitter4sr(config.getConsumerKey(), config.getConsumerSecret());
    }
}
